"""
获取时间分量
"""
from datetime import datetime

t = datetime.now()
print(t)

print(t.year)
print(t.month)
print(t.day)